<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

<ui:composition>
    <p:dialog header="Editar configuração" id="edit_config" widgetVar="edit_config" resizable="false" modal="true" width="440">
        <h:panelGrid id="panel_edit_config" columns="2" style="margin-bottom:10px">

            <h:outputLabel value="Nome:" />
            <h:outputLabel value="#{editConfigMBean.selectedConfig.name}" />

            <h:outputLabel value="Valor:" />
            <h:inputText value="#{editConfigMBean.selectedConfig.value}"/>

        </h:panelGrid>
        <br/>
        <p:commandButton value="Confirmar" update="dataTableConfig" actionListener="#{editConfigMBean.update}" oncomplete="edit_config.hide();"/>
        <p:commandButton value="Cancelar" oncomplete="edit_config.hide();"/>
    </p:dialog>
</ui:composition>
</html>